/**
 * 二级页
 */

//非首页的处理
if( $(".CurrChnlCls").length > 0 ){
	
	//nav对应的头
	_EsdDynamicTransformationScript.nav1A = $("#nav_lm_box > .nav_lm:eq(1) a:eq(0)");
	_EsdDynamicTransformationScript.nav2A = $("#nav_lm_box > .nav_lm:eq(2) a:eq(0)");
	_EsdDynamicTransformationScript.nav3A = $("#nav_lm_box > .nav_lm:eq(3) a:eq(0)");
	_EsdDynamicTransformationScript.nav4A = $("#nav_lm_box > .nav_lm:eq(4) a:eq(0)");
	_EsdDynamicTransformationScript.nav5A = $("#nav_lm_box > .nav_lm:eq(5) a:eq(0)");

	//对应块内的第一个a
	_EsdDynamicTransformationScript.nav1BlockA1 = $("#nav_lm_box > .nav_lm:eq(1) .nav_lm_tc a:first");
	_EsdDynamicTransformationScript.nav2BlockA1 = $("#nav_lm_box > .nav_lm:eq(2) .nav_lm_tc a:first");
	_EsdDynamicTransformationScript.nav3BlockA1 = "";
	_EsdDynamicTransformationScript.nav4BlockA1 = $("#nav_lm_box > .nav_lm:eq(4) .nav_lm_tc a:first");
	_EsdDynamicTransformationScript.nav5BlockA1 = $("#nav_lm_box > .nav_lm:eq(5) .nav_lm_tc a:first");

	//对应块内最后一个a
	_EsdDynamicTransformationScript.nav1BlockAN = $("#nav_lm_box > .nav_lm:eq(1) .nav_lm_tc a:last");
	_EsdDynamicTransformationScript.nav2BlockAN = $("#nav_lm_box > .nav_lm:eq(2) .nav_lm_tc a:last");
	_EsdDynamicTransformationScript.nav3BlockAN = "";
	_EsdDynamicTransformationScript.nav4BlockAN = $("#nav_lm_box > .nav_lm:eq(4) .nav_lm_tc a:last");
	_EsdDynamicTransformationScript.nav5BlockAN = $("#nav_lm_box > .nav_lm:eq(5) .nav_lm_tc a:last");

	//nav之后的第一个a（一般来说是面包屑导航中的第一个a）
	_EsdDynamicTransformationScript.navNextA1 = $(".CurrChnlCls:first");
	
	//1
	_EsdDynamicTransformationScript.nav1A.focus(function(){
		_EsdDynamicTransformationScript.nav1A.mouseover();
		$(this).bind("keydown.navKeydown_nav1", function (e) {
			if(e.shiftKey && e.keyCode==9){
				_EsdDynamicTransformationScript.nav1A.mouseout();
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.nav1BlockA1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.nav1A.blur(function(){
		$(this).unbind("keydown.navKeydown_nav1");
	});
	
	_EsdDynamicTransformationScript.nav1BlockA1.focus(function(){
		$(this).bind("keydown.navKeydown_nav1_1", function (e) {
			if(e.shiftKey && e.keyCode==9){
				_EsdDynamicTransformationScript.nav1A.focus();
				return false;
			}else if (e.keyCode == 9) {
				
			}
		});
	});
	_EsdDynamicTransformationScript.nav1BlockA1.blur(function(){
		$(this).unbind("keydown.navKeydown_nav1_1");
	});
	
	_EsdDynamicTransformationScript.nav1BlockAN.focus(function(){
		$(this).bind("keydown.navKeydown_nav1_N", function (e) {
			if(e.shiftKey && e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.nav2A.mouseover();
				_EsdDynamicTransformationScript.nav2A.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.nav1BlockAN.blur(function(){
		$(this).unbind("keydown.navKeydown_nav1_N");
	});
	
	//2
	_EsdDynamicTransformationScript.nav2A.focus(function(){
		$(this).bind("keydown.navKeydown_nav2", function (e) {
			if(e.shiftKey && e.keyCode==9){
				_EsdDynamicTransformationScript.nav1A.mouseover();
				_EsdDynamicTransformationScript.nav1BlockAN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.nav2BlockA1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.nav2A.blur(function(){
		$(this).unbind("keydown.navKeydown_nav2");
	});
	
	_EsdDynamicTransformationScript.nav2BlockA1.focus(function(){
		$(this).bind("keydown.navKeydown_nav2_1", function (e) {
			if(e.shiftKey && e.keyCode==9){
				_EsdDynamicTransformationScript.nav2A.focus();
				return false;
			}else if (e.keyCode == 9) {
				
			}
		});
	});
	_EsdDynamicTransformationScript.nav2BlockA1.blur(function(){
		$(this).unbind("keydown.navKeydown_nav2_1");
	});
	
	_EsdDynamicTransformationScript.nav2BlockAN.focus(function(){
		$(this).bind("keydown.navKeydown_nav2_N", function (e) {
			if(e.shiftKey && e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.nav3A.focus();
				_EsdDynamicTransformationScript.nav2A.mouseout();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.nav2BlockAN.blur(function(){
		$(this).unbind("keydown.navKeydown_nav2_N");
	});
	
	//3
	_EsdDynamicTransformationScript.nav3A.focus(function(){
		$(this).bind("keydown.navKeydown_nav3", function (e) {
			if(e.shiftKey && e.keyCode==9){
				_EsdDynamicTransformationScript.nav2A.mouseover();
				_EsdDynamicTransformationScript.nav2BlockAN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.nav4A.mouseover();
				_EsdDynamicTransformationScript.nav4A.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.nav3A.blur(function(){
		$(this).unbind("keydown.navKeydown_nav3");
	});

	//4
	_EsdDynamicTransformationScript.nav4A.focus(function(){
		$(this).bind("keydown.navKeydown_nav4", function (e) {
			if(e.shiftKey && e.keyCode==9){
				_EsdDynamicTransformationScript.nav3A.focus();
				_EsdDynamicTransformationScript.nav4A.mouseout();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.nav4BlockA1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.nav4A.blur(function(){
		$(this).unbind("keydown.navKeydown_nav4");
	});
	
	_EsdDynamicTransformationScript.nav4BlockA1.focus(function(){
		$(this).bind("keydown.navKeydown_nav4_1", function (e) {
			if(e.shiftKey && e.keyCode==9){
				_EsdDynamicTransformationScript.nav4A.focus();
				return false;
			}else if (e.keyCode == 9) {
				
			}
		});
	});
	_EsdDynamicTransformationScript.nav4BlockA1.blur(function(){
		$(this).unbind("keydown.navKeydown_nav4_1");
	});
	
	_EsdDynamicTransformationScript.nav4BlockAN.focus(function(){
		$(this).bind("keydown.navKeydown_nav4_N", function (e) {
			if(e.shiftKey && e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.nav5A.mouseover();
				_EsdDynamicTransformationScript.nav5A.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.nav4BlockAN.blur(function(){
		$(this).unbind("keydown.navKeydown_nav4_N");
	});

	//5
	_EsdDynamicTransformationScript.nav5A.focus(function(){
		$(this).bind("keydown.navKeydown_nav5", function (e) {
			if(e.shiftKey && e.keyCode==9){
				_EsdDynamicTransformationScript.nav4A.mouseover();
				_EsdDynamicTransformationScript.nav4BlockAN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.nav5BlockA1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.nav5A.blur(function(){
		$(this).unbind("keydown.navKeydown_nav5");
	});
	
	_EsdDynamicTransformationScript.nav5BlockA1.focus(function(){
		$(this).bind("keydown.navKeydown_nav5_1", function (e) {
			if(e.shiftKey && e.keyCode==9){
				_EsdDynamicTransformationScript.nav5A.focus();
				return false;
			}else if (e.keyCode == 9) {
				
			}
		});
	});
	_EsdDynamicTransformationScript.nav5BlockA1.blur(function(){
		$(this).unbind("keydown.navKeydown_nav5_1");
	});
	
	_EsdDynamicTransformationScript.nav5BlockAN.focus(function(){
		$(this).bind("keydown.navKeydown_nav5_N", function (e) {
			if(e.shiftKey && e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.navNextA1.focus();
				_EsdDynamicTransformationScript.nav5A.mouseout();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.nav5BlockAN.blur(function(){
		$(this).unbind("keydown.navKeydown_nav5_N");
	});

	//nav之后，面包屑导航倒切
	_EsdDynamicTransformationScript.navNextA1.focus(function(){
		$(this).bind("keydown.navKeydown_navNextA1", function (e) {
			if(e.shiftKey && e.keyCode==9){
				_EsdDynamicTransformationScript.nav5A.mouseover();
				_EsdDynamicTransformationScript.nav5BlockAN.focus();
				return false;
			}else if (e.keyCode == 9) {
				
			}
		});
	});
	_EsdDynamicTransformationScript.navNextA1.blur(function(){
		$(this).unbind("keydown.navKeydown_navNextA1");
	});


	
	
}



//在线咨询，厅长信箱
if(_EsdDynamicTransformationScript.currentUrl == 'http://sthjt.jl.gov.cn/hdjl/zxzx/' 
	|| _EsdDynamicTransformationScript.currentUrl == 'http://sthjt.jl.gov.cn/hdjl/tzxx/' ){
	
	_EsdDynamicTransformationScript.slidePointInterval = setInterval(function () {
		if ( document.getElementsByTagName("iframe")[0].contentWindow.document.getElementById("SubmitButton") != undefined ) {
			clearInterval(_EsdDynamicTransformationScript.slidePointInterval);
			
	var inputIframe = document.getElementsByTagName("iframe")[0].contentWindow.document;
	$(inputIframe).find(".xdTextBox:eq(0)").attr({placeholder:"姓名",title:"姓名"});
	$(inputIframe).find(".xdTextBox:eq(1)").attr({placeholder:"联系电话",title:"联系电话"});
	$(inputIframe).find(".xdTextBox:eq(2)").attr({placeholder:"通讯地址",title:"通讯地址"});
	$(inputIframe).find(".xdTextBox:eq(3)").attr({placeholder:"电子邮件",title:"电子邮件"});
	$(inputIframe).find(".xdTextBox:eq(4)").attr({placeholder:"标题",title:"标题"});
	$(inputIframe).find(".xdRichTextBox:eq(0)").attr({placeholder:"内容",title:"内容"});
	
	$(inputIframe).find("#SubmitButton").attr("title","提交");	
	$(inputIframe).find("#ResetButton").attr("title","重置");	

		}
	}, 500);
	
	
}












